package com.rede.didiok.admin.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.rede.didiok.admin.service.SysParamsService;

// import org.apache.shiro.authz.annotation.RequiresPermissions;



/**
 * 参数配置表
 *
 * @author Rede
 * @email didiok@foxmail.com
 * @date 2023-08-07 18:21:17
 */
@RestController
@RequestMapping("admin/feign/sysParams")
public class SysParamsController {
    @Autowired
    private SysParamsService sysParamsService;

    /**
     * 通过 参数键名 获取参数值
     */
    @GetMapping("/getSysParamsValueByKey")
    String getSysParamsValueByKey(@RequestParam("key")String key){
        return sysParamsService.getSysParamsValueByKey(key);
    }

}
